package com.ruoyi.enums;


import lombok.Getter;

@Getter
public enum CustomerSort {

    LAST_REMARK_TIME("lastRemarkTime", "last_remark_time"),;

    private final String label;
    private final String value;

    CustomerSort(String label, String value) {
        this.label = label;
        this.value = value;
    }


    public static String of(String label) {
        CustomerSort[] values = values();
        for (CustomerSort value : values) {
            if (value.getLabel().equals(label)) {
                return value.getValue();
            }
        }
        return "";
    }
}
